var router = require('./router')

var models = require('../models/classes')
router.get('/addClass', function(req, res){
  res.render('addClass.html')
})

router.post('/addClass', function(req, res){
  console.log(req.body)
  models.addClass(req.body)
  res.writeHead(200)
  res.end(JSON.stringify({
    message: 'success'
  }))
})  